package cn.wolfcode.crm.mapper;

import java.util.List;

import cn.wolfcode.crm.domain.Role;

public interface EmployeeRoleMapper {
	void insertEmployeeRole(Long roleId, Long[] permissionIds);
	
	void removeByRoleId(Long roleId);
	
	void removeByEmployeeId(Long EmployeeId);
	
	List<Role> listEmployeeRoleByEmployeeId(Long employeeId);
	
	List<Role> listEmployeeRoleByRoleId(Long roleId);
	
	long countEmployeeRoleByEmployeeId(Long employeeId);
	
	long countEmployeeRoleByRoleId(Long roleId);
}
